package com.liwbn.rbac.vo;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.liwbn.rbac.model.Permission;
import com.liwbn.rbac.model.Role;

public class UserVO implements Serializable {

    /**
     * 
     */
    private static final long serialVersionUID = -5400141453224505591L;

    private Long id;

    private String username;

    private String password;

    private String state;

    private Date createTime;

    /**
     * 用户角色
     */
    private List<Role> roles;

    /**
     * 用户权限
     */
    private List<Permission> permissions;

    public UserVO() {

    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public List<Role> getRoles() {
        return roles;
    }

    public void setRoles(List<Role> roles) {
        this.roles = roles;
    }

    public List<Permission> getPermissions() {
        return permissions;
    }

    public void setPermissions(List<Permission> permissions) {
        this.permissions = permissions;
    }

}
